version: '2'
services:
{% for id in ['1','2','3'] %}
  etcd{{ id }}:
    image: docker.repo:5000/ppc64le/etcd:1.4
    environment:
      - NODE_NAME="{{ ansible_hostname }}_{{ id }}"
      - DISCOVERY_URL={{ etcd_discovery_url }}
    ports:
      - "400{{ id }}:4001"
    volumes:
      - "/data/etcd{{ id }}:/data/"
{% endfor %}
